using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmMpJobSiteCommand")]
    public class MpJobSiteCommand
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "JobSiteCmdId", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public int JobSiteCmdId { get; set; }

		[DataMember, Display(Name = "CmdFlag", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string CmdFlag { get; set; }

		[ForeignKey("JobSiteType")]
		[DataMember, Display(Name = "JobSiteTypeId", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<int> JobSiteTypeId { get; set; }

		[DataMember, Display(Name = "CmdDraftNo", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string CmdDraftNo { get; set; }

		[DataMember, Display(Name = "CmdRefNo", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string CmdRefNo { get; set; }

		[DataMember, Display(Name = "CmdDescr", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string CmdDescr { get; set; }

		[DataMember, Display(Name = "CmdStatus", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string CmdStatus { get; set; }

		[DataMember, Display(Name = "ApprovedBy", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<int> ApprovedBy { get; set; }

		[DataMember, Display(Name = "ApprovedName", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string ApprovedName { get; set; }

		[DataMember, Display(Name = "ApprovedDate", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<System.DateTime> ApprovedDate { get; set; }

		[DataMember, Display(Name = "ApprovedPositions", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string ApprovedPositions { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpJobSiteCommandsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual HRM.MasJobSiteType JobSiteType { get; set; }

    }
}